import { get, post, del, put } from "./request";
// 获取验证码
export const sendRegisterCode = (data) => get("/api/sms/sendRegisterCode/" + data);
// 登录
export const appLogin = (data) => post("/api/sms/register", data);
// 个人信息
export const getSystemMemberInfo = (data) => get("/system/member/" + data);
// 修改个人信息
export const putSystemMember = (data) => put("/system/member", data);
// 门店信息
export const getSystemStore = (data) => get("/system/store/list", data);
// 图片上传
export const commonUpload = (data) => post("/common/upload", data);
// 新增收货地址
export const addAddress = (data) => post("/system/address", data);
// 修改收货地址
export const updateAddress = (data) => put("/system/address", data);
// 收货地址信息
export const addressList = (data) => get("/system/address/list", data);
// 新增用户需求
export const addFeedback = (data) => post("/system/feedback", data);
// 修改用户需求
export const updateFeedback = (data) => put("/system/feedback", data);
// 用户需求列表
export const feedbackList = (data) => get("/system/feedback/list", data);
// 用户需求信息详情
export const feedbackDetail = (data) => get("/system/feedback/" +
    data);
// 账单列表
export const detailsList = (data) => get("/system/details/list", data);
// 查询会员权益列表
export const raiList = (data) => post("/system/rai/listHf", data);
// 配置微信号
export const systemConfig = (data) => get("/system/config/6", data);
// 新增权益订单
export const addOrder = (data) => post("/system/order", data);
// 权益商品
export const goodsRaiList = (data) => get("/system/goods/raiList",
    data);
// 权益订单列表
export const orderRaiList = (data) => get("/system/order/raiList",
    data);
// 权益使用明细
export const membeLListById = (data) => get("/system/raiDetails/list", data);
// 购买会员
export const systemSetMenu = (data) => post("/system/setMenu", data);
// 支付
export const payWechatPay = (data) => post("/system/pay/wechatPay", data);
// 权益套餐
export const mealList = (data) => get("/system/getMenu/info",
    data);
// 获取access_token
export const getAccessToken = (data) => get("/system/pay/getAccessToken",
    data);
// 获取memberOpenIdInfo
export const getMemberOpenIdInfo = (data) => get("/api/sms/openIdInfo/" + data);
// payGetToken
export const payGetToken = (data) => get("/system/pay/getToken");

export const payGetTicket = (data) => get("/system/pay/getTicket", data);

export const memberShare = (data) => post("/system/member/share", data);


export const systemMemberList = (data) => get("/system/member/list", data);